import React, { useState } from 'react';

export default function CInput(props: any) {
	const [value, setValue] = useState('');
	return (
		<input
			className={props.className}
			value={value}
			onChange={(event) => {
				change(event);
			}}
		/>
	);
	function change(event: any) {
		setValue(event.target.value);
		props.onChange(event.target.value);
	}
}
